package com.waimai.db.entity;

import java.util.Date;

/**
 * Food entity. @author MyEclipse Persistence Tools
 */

public class Food implements java.io.Serializable {

	// Fields

	private Integer foodId;
	private Category category;
	private String foodName;
	private Float price;
	private String photo;
	private Date pubTime;
	private Integer monthSales;
	private Integer totalSales;
	private Boolean enabled;
	private Integer zan;

	// Constructors

	/** default constructor */
	public Food() {
	}

	/** minimal constructor */
	public Food(Category category, String foodName, Float price, Date pubTime,
			Integer monthSales, Integer totalSales) {
		this.category = category;
		this.foodName = foodName;
		this.price = price;
		this.pubTime = pubTime;
		this.monthSales = monthSales;
		this.totalSales = totalSales;
	}

	/** full constructor */
	public Food(Category category, String foodName, Float price, String photo,
			Date pubTime, Integer monthSales, Integer totalSales) {
		this.category = category;
		this.foodName = foodName;
		this.price = price;
		this.photo = photo;
		this.pubTime = pubTime;
		this.monthSales = monthSales;
		this.totalSales = totalSales;
	}

	// Property accessors

	public Integer getFoodId() {
		return this.foodId;
	}

	public void setFoodId(Integer foodId) {
		this.foodId = foodId;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getFoodName() {
		return this.foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Date getPubTime() {
		return this.pubTime;
	}

	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}

	public Integer getMonthSales() {
		return this.monthSales;
	}

	public void setMonthSales(Integer monthSales) {
		this.monthSales = monthSales;
	}

	public Integer getTotalSales() {
		return this.totalSales;
	}

	public void setTotalSales(Integer totalSales) {
		this.totalSales = totalSales;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	
	
	public Integer getZan() {
		return zan;
	}

	public void setZan(Integer zan) {
		this.zan = zan;
	}

	@Override
	public String toString() {
		return "Food [foodId=" + foodId + ", category=" + category
				+ ", foodName=" + foodName + ", price=" + price + ", photo="
				+ photo + ", pubTime=" + pubTime + ", monthSales=" + monthSales
				+ ", totalSales=" + totalSales + ", enabled=" + enabled
				+ ", zan=" + zan + "]";
	}
}